package com.xh.bussiness.course.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.course.bean.dto.CourseDto;
import com.xh.bussiness.course.bean.request.CourseRequest;
import com.xh.bussiness.course.model.Course;
import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {

    XhPage<CourseDto> queryByPage(@Param("page")XhPage page, @Param("bean") CourseRequest bean);

    CourseDto queryOne(@Param("bean")CourseRequest bean);

    XhPage<CourseDto> queryNearCourseIndex(@Param("page")XhPage page, @Param("bean")CourseRequest bean);
}
